package com.itheima.service;

import com.itheima.dao.BirdDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
//使用@Service注解将BirdServiceImpl类标识为Sring中的Bean

@Repository("birdService")
public class BirdServiceImpl implements BirdService{

    @Resource(name="birdDao1")
    public BirdDao birdDao1;
    public void fly(){
        this.birdDao1.fly();

    }

}
